package it.unina.loquendo;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;


public class LoquendoResult implements Parcelable {

	private Bundle semantic_list;
	private float confidance;
	private String result;
	
	
	public LoquendoResult(){}
	
	
	public LoquendoResult(Parcel in){
		semantic_list = in.readBundle();
		confidance = in.readFloat();
		result = in.readString();
	}
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel arg0, int arg1) {
		arg0.writeBundle(semantic_list);
		arg0.writeFloat(confidance);
		arg0.writeString(result);

	}
	
	
	
	
	
	
	public Bundle getSemanticList() {
		return semantic_list;
	}


	public void setSemanticList(Bundle semantic_map_list) {
		this.semantic_list = semantic_map_list;
	}


	public float getConfidance() {
		return confidance;
	}


	public void setConfidance(float confidance) {
		this.confidance = confidance;
	}


	public String getResult() {
		return result;
	}


	public void setResult(String result) {
		this.result = result;
	}






	public static final Parcelable.Creator<LoquendoResult> CREATOR = new Parcelable.Creator<LoquendoResult>() {
		public LoquendoResult createFromParcel(Parcel in) {
			return new LoquendoResult(in);
		}

		public LoquendoResult[] newArray(int size) {
			return new LoquendoResult[size];
		}
	};


	
	

}
